-- GENERATED SPELL FOR [Greater Crust Burster] --


function spell0_21380(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(31747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21380', 2000, 1)
end

function Sorts_21380(pUnit, Event)
local choix_sorts_21380 = math.random(0, 0)
if choix_sorts_21380 == 0 then
pUnit:RegisterEvent('spell0_21380', 1, 1)
end
end

function mob21380_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21380', math.random(1500, 3000), 1)
end

function mob21380_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21380_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21380_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21380, 1, 'mob21380_Action')
RegisterUnitEvent(21380, 2, 'mob21380_Leave')
RegisterUnitEvent(21380, 3, 'mob21380_Kill')
RegisterUnitEvent(21380, 4, 'mob21380_Die')
